/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;

import Enum.Frequency;
import dao.ChoreDAO;
import java.sql.SQLException;
import java.util.Calendar;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;


/**
 *
 * @author wrjohns
 */
public class ChoreBean 
{

    private String choreName, houseName, frequency;
    private int startDay,startMonth,startYear;
    private int priority;
    private int choreLastDoneDay, choreLastDoneMonth, choreLastDoneYear;
    
    public ChoreBean()
    {
        
    }

    public String getFrequency() {
        return frequency;
    }

    public void setFrequency(String frequency) {
        this.frequency = frequency;
    }

    public void setChoreName(String choreName) {
        this.choreName = choreName;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }
    
    public ChoreBean(String name, String house, int day, int month, int year, Frequency freq, int priority)
    {
        houseName = house;
        choreName = name;
        
        startDay = day;
        startMonth = month;
        startYear = year;
        
        frequency = freq.toString();
        
        this.priority = priority;
    } 
    

    public void setStartDate(Date startDate)
    {
        Calendar cal = Calendar.getInstance();
        cal.setTime(startDate);
        startDay = cal.get(Calendar.DAY_OF_MONTH);
        startMonth = cal.get(Calendar.MONTH);
        startYear = cal.get(Calendar.YEAR);
        
    }
    
    public String getHouseName() 
    {
        return houseName;
    }

    public void setHouseName(String houseName) 
    {
        this.houseName = houseName;
    }

    public int getChoreLastDoneDay() {
        return choreLastDoneDay;
    }

    public void setChoreLastDoneDay(int choreLastDoneDay) {
        this.choreLastDoneDay = choreLastDoneDay;
    }

    public int getChoreLastDoneMonth() {
        return choreLastDoneMonth;
    }

    public void setChoreLastDoneMonth(int choreLastDoneMonth) {
        this.choreLastDoneMonth = choreLastDoneMonth;
    }

    public int getChoreLastDoneYear() {
        return choreLastDoneYear;
    }

    public void setChoreLastDoneYear(int choreLastDoneYear) {
        this.choreLastDoneYear = choreLastDoneYear;
    }
    
    public String getChoreName() 
    {
        return choreName;
    }

    public int getStartDay() {
        return startDay;
    }

    public void setStartDay(int startDay) {
        this.startDay = startDay;
    }

    public int getStartMonth() {
        return startMonth;
    }

    public void setStartMonth(int startMonth) {
        this.startMonth = startMonth;
    }

    public int getStartYear() {
        return startYear;
    }

    public void setStartYear(int startYear) {
        this.startYear = startYear;
    }



    public int getPriority() 
    {
        return priority;
    }
    

  
}